#ifndef HTML_TAG_H_INCLUDED
#define HTML_TAG_H_INCLUDED

class html_attrib;
class html_tag {
    public:

    html_tag() :    first_child(0), next_child(0), parent_tag(0), tag_hash(0)
                    {
                        box.x = 0;
                        box.y = 0;
                        box.w = 0;
                        box.h = 0;
                    };

    string          name;
    string          text;

    html_attrib*    first_child;
    html_attrib*    next_child;

    /*
        could be embedded in another tag and inherit it's properties
        e.g.
        <div style="...">
        <p>hello</p>
        </div>
    */
    html_tag*    parent_tag;

    unsigned long   tag_hash;

    // sizing info.
    SDL_Rect box;

};


#endif // HTML_TAG_H_INCLUDED
